#coding:utf-8

from dao.userdao import userdao 
from model.userinfo import UserInfo

class UserService(object):

	def get_by_name_pwd(self, name, pwd):
		lis = userdao.get_by_param(uname = name, upwd = pwd)
		if len(lis) == 1:
			return lis[0]
		return None

uservice = UserService()
